package classes.controller
{
	import classes.RootMediator;
	import classes.model.SiteDataProxy;
	
	import flash.display.Stage;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class StartCommand extends SimpleCommand implements ICommand
	{
		override public function execute(notification:INotification):void
		{
			var stage:Stage = notification.getBody() as Stage;
			facade.registerMediator( new RootMediator (RootMediator.NAME, stage) );
			
			facade.registerProxy( new SiteDataProxy() );
			
		}
			
	}
}